# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo1113
# Description:
# Author:       $赵怡蕾
# Date:         2019/4/3
#-------------------------------------------------------------------------------

import re

s = 'bill|mike|john'      # 择一匹配符(|)  相当于or

m = re.match(s,'bill')
if m is not None:
    print(m.group())

m = re.search(s,'bill is my friend')
if m is not None:
    print(m.group())
print(m)